Simplify task builder code using @colinbull gist