Refactors files.