Moved so that prechecking of constructor name is done later. This way we ensure that ViewModels are defined before running precheck