Move builtins to a dedicated module

Another effort to cleanup the code.