Move method compilation to common extension compiler class