Refactor setup file.