[server] Clean up ident function.