Refactor user related views and tests.