Small refactoring so we can also batch create AT objects