Refactor some ensure_length_of_matcher_specs to remove duplication

Moved translation specs into a context with a common after block