Removed framework-related components and fixed a bug introduced by
string replacement during K2 split.