refactor(doctrine): reduce code duplication for WhereBuilder
refactor(Input): reduce code duplication of XmlInput (use XmlUtils)