Split out global, pinned and topics

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>