Remove api for registering editor's kwargs

It's an ugly workaround and it's not needed since the only place using it can
do the same in a simpler way.

Change-Id: I873348ac34210972f5a76495cdbf78eed9ab9375