There are some pieces of logic that can be extracted into a shared class that all test cases can use, avoiding code repetition and keeping test files briefer.