Refactor WRM get_data action