refactoring
noun
the practice of revising (text or, especially, programming code) so as to leave its meaning intact while making it more readable, more rationally arranged, or more adaptable to different contexts.