Refactored slugging_percentage to its own method