is there a way to use utility functions inside procedures? - Theo's Typesafe Cult