Presumably `repository` can't be NULL?