Reimplement repositories APIs