Define {refineryName}_relatedEntities setting once

And then just set a flag on refineries that use is