Improved code readability of clean files method