Remove unused config
Fix detached instance in security service
Switch to real security impl