MDL-49329 admin: Clean up code manager methods