Extracted topic class and moved page elements extraction into new class