Added expression factories for default factory and custom factory.