Using the same type hints, we could reduce the same code duplication in #1, reducing LOC count and overhead when adding features.