Also move context menu logic into separate classes

Signed-off-by: Sven Strickroth <email@cs-ware.de>