Move decoding concerns outside of checkoutFiles