Can the code be cleaned up to be easier to read and more easily maintainable without removing any functionality?