There is duplicated code in the _addCalldataCheck function.
Specifically on the 1058
and on the 1089
Duplicate code, make the code base more difficult to read. They also make it more error-prone, harder to fix, and complicate maintainability and updateability.
Consider refactoring the code for the above cases. This will lower gas consumption and increase the codebases overall readability and quality.
