Remove a little duplication in progress button generation