What is the advantage of creating the class here through reflection instead of creating it earlier?