Refactoring 'resources'