Refactored fold and filter commands to their own files