Pull some functions off the scope

These scope functions aren't needed elsewhere. They should be private
to the application.