Don't use a deprecated method
Use 'using' when dealing with a repo