Refactoring ResourcePropertiesController.