refactor($parse): reduce code size