Refactoring resources