Move Repository persistence methods to a separate file