refactor expression postfix template with chooser