PIM-1113: Remove useless code from edit view