Simplify task definition with helper function