Replace type specific handlers by context specific ones