refactor: remove the coercion from BoundedLatticeHomClass (#46745) Part of #31365
BoundedLatticeHomClass