Improved codestyle in mongo plugin.