Resources and refactoring