Use the ast-path package instead of own Path implementation.