Support multipart constant names like "Admin::PageHierarchy"

Signed-off-by: Simon Menke <simon.menke@gmail.com>