Removal of useless dependencies via forward declarations