Separated Bracket Logic from Controller into Service Layer