Applied automated code cleanup