Move is_dependency_building to model method.