Refactoring resources.