Repeated code, move into implicit class.