Mongoid conditions builder

just removing duplicate code.