Moved common code to method
Fixed bug in renaming of related properties in schema editor
Merge branch 'develop' of github.com:structr/structr into develop