Refactor code, make more DRY

Abstract filter method to Log model