Remove giant shitty switch/case statement.