Move load_yaml function out of specific rake task.