Abstract out domain parsing