Separate ecore_pipe_write() with a function and modify macro