Improve virtual methods to not include non-closure methods.