refactoring, move methods in allocationRepository class