Delete redundant line, incorporate create_resource method