Move shared functions to support namespace.