[core] Remove unused imports from TwoWayLayoutManager