Restructured to depend on client code provided by display library.