remove duplication of `controller.resources_configuration` around the code