Remove duplicated boilerplate