Refactor Foundation Array transformers