Remove the deprecation warning when merging classes from the same template.