Refactored Quick-Apply links handling, added test.