Make contentType DRY.