Moved region parsing to API (from machado theme).