Removed duplicate code from Occurrence#finalize_* methods

Most of them were doing the same thing in both branches of their if-statements, just with
different starting variables