The issue is that while you can include foo using the include function as many times as you like, you can't use the resource-like declarations class { 'foo': abcvar => 'something' }. What can you do, however, is use the Automatic Parameter Lookup in conjunction with Hiera.