refactor: use scope instead of class method in models