remove unnecessary declarations of protected variables inside subclasses