Don't use variables in resolve's switch/case