Refactor UiCommandDetail creation to be a utility class

Necessary to reuse the block of code that creates descriptions,
so that other places can be supported within the server.

Change-Id: I6c89b72a4a6b3c72ce7fc19aa9580a3a99994294
3 files changed