Refactor share view and model.