Refactor Problem API and remove unneeded APIs.