Replace frequent number lists by variables.
Replace objects with identical values by function calls.