Refactor MenuFromLines::parseOneLine

Change-Id: Id02df2c7db397bb63f07ca6c4ea880ff70f190f8