This can be enforced by pre-commit, but correct it separately to make it easier to review.
Fixes #306