New function for creating a list of clauses from a loop body.
Removed component that is no longer used.