CFY-1232 extract manager endpoint logic as preperation for local ctx