[server] Clean up by using TableProfile.