remove duplication in sprint_serialize.js