Refactored view creation logic to new method 'createViewFromProperty' in PropertyView.