Refactored repository to retrieve contracts only for a particular user.