Finish refactoring read_photons