Refactor various processReleases stages.