PR review request: Consolidate checks for static_assert

Requesting a review of this PR here, since all previous review comments have been addressed and the latest changes have been awaiting review since December, and the issue was pinged a week ago with no response.