[FrameworkBundle] Removed redundant type in a return annotation.