Refactor widening multimapper to an inner class