TS-2291: Make configure.ac cleaner for remap_stats checks