Revert "Close #320: Added view for loop function."

This reverts commit ba87e91342f886b1c74e3cc25fdd1285e7006c02.
Revert "Close #318: Add model/collection for loops."

This reverts commit f084e269e27604a83de70ddbbdc5c13e47d16648.