moved pre_entity_controllers into pre_entity_layer.