Deduplicates the amount of written code. Now code only needs to ever change in operator== to automatically reflect across the two functions.