Use ? instead of trivial if-else for remap.