Remove unused code from nexus-security-realms
Remove unused code from nexus-core