[PullReview] Use before_filter for common tasks