Mongo Framework to cut down code