refactor: use scope instead of class method in models

this pull request should be +2 by @Chunjie  and @Henry-CF both