more refactoring

- code deduplicate in ClassTree
- move util functions to Utils.kt
- properties updating refactor
- simplified layout params extraction