Collapse closure into parent function.