Moved IRepository to separate file