Remove forward declarations in quantifiers engine (#3156)