Cleaning the code of the Abstract3dModel to make it easier to test