Break up into SecurityService and SecurityFramework