- Move the static function declared in MaterialVariants.h to the .cpp - Fix several use-after-move that were horribly wrong