Move test to separate file.
Move mock data to separate file.
Move constant to separate file.
Refactor code.