Added factory to Groovy script binding