remove resources::display_context

This was only added to facilitate refactor, now it is no longer
necessary and can be removed.