Merge duplicated model building to single location