[#3] refactor extensions model for intentity.