Removing unused reference in core