Moving record writer and output committer so they are no longer nested classes