Move non entity related stuff to RestfulBase.