Project: springxd
Issue XD-772: Factor out duplicated SpEL / script logic
See discussion at https://github.com/SpringSource/spring-xd/pull/250/files#r6034885
Story points: 3