code refactoring to reduce duplicate code
remove support for pretected attributes
namespaced models are determined automatically