Remove read_keywords_from_layer function in safe_interface as it only being used in the test.