Extract method to get default widget for a property to an independant class