Getting rid of all hard-coded REMs