move models to common module.