Separated class hierarchies to different packages.