Better way of looking up the primary constructor