This function doesn't need to be in this function's body. Pull it out into the main module closure to make this function body a little more digestible.