Refactoring: Shared resources put to application scope