Resource refactoring.