Find numbers that should be extracted to a declaration statement