Now have non prototype based repository functions via createRepository