Removed fragements of obsolete rest api.