Wrap functions in a module to enhance reuse