Refactor yii_framework definition into resource