Remove duplication, inline later if needed.