Refactor all files