When should you turn your ugly research script into a reproducible package?