Why not make these into separate functions?