Move security functions to the new service.security namespace