Extract common into one file.