BO.collect and BO.chunkify

Refactored BO.collect and BO.chunkify out of PR #636

Mentioned in issue #634