Move DIRECTION_, TYPE_ & SORT_ from Repositories to AbstractApi