Factor megapath features into common module
MEGAPATH for cython proxies