Got the dynamic importing of models working by playing with the order of imports within the models file.