Extract common class