Split underlying machinery into a separate package.