Extract common codes