Refactor documentation, so downstream plugins can reuse it easier Change-Id: I835f37aab0d859dc90410e761111c6fdd3ca8f2b