Moved common models into a separate file.