Move extension compiler to a common module