Rewriting the minimization plugin to not use the minimization data class