KnockoutModelGenerator refactor