Move require definition to its own package.