Extract models into separate files