Does core.js already have the concept of Map/Combine/Reduce? This logic is specific to  MR job, which not all jobs will be. Can this concept be contained in the code that renders the pig script?