Removing file reading code from utils