Remove deprecated context and print functions, and fix notice: created empty object