Replace hardcoded mode behaviours.