Remove unused methods from context