Making the jmetal3.encoding.impl package DRY