Move resources handlers in a new submodule