Implement factory for expression parsing