Split up repository into separate files, retaining in partial class for now.