Fixed some ugliness with hook configurations coming in as BSON objects. TODO: Needs to be more elegant