Move offer check into helper to improve testability and use of HAML
The following discussion from !51702 (merged) should be addressed:
-
@stanhu started a discussion: For later: This probably should go into a helper to improve testability and reduce the amount of code used in the HAML.