DRY up the file loading a little bit