Refactoring build model.