Extract models classes from inner class to classic class into package models