Remove unused code from nexus-security