Refactor code and fix compilation errors caused by changes to symbol.fir
#KT-10237 Fixed #KT-11821 Fixed #KT-8200 Fixed