The retail giant is borrowing from Ulta’s playbook to invigorate its revamped beauty department.