Moved endpoints to separate package.